package io.jft.doll.api

import com.g.base.api.BaseResult
import com.google.gson.JsonObject
import io.jft.doll.room.entity.remote.CartREntity
import io.reactivex.Observable
import retrofit2.http.Body
import retrofit2.http.POST

/**
 * Created by G on 2017/12/11 0011.
 */
interface CartApi {
    @POST("person/applyShip")
    fun applyShip(@Body jsonObject: JsonObject): Observable<BaseResult<CartREntity?>>

    @POST("person/cart_list")
    fun getCartList(): Observable<BaseResult<CartREntity?>>

    @POST("person/cart_checkone")
    fun getCartCheckOne(@Body jsonObject: JsonObject): Observable<BaseResult<CartREntity?>>

    @POST("person/cart_checkall")
    fun getCartCheckAll(@Body jsonObject: JsonObject): Observable<BaseResult<CartREntity?>>
}